from rest_framework.viewsets import ModelViewSet

from apps.goods.models import SpecificationOption
from apps.meiduo_admin.serializers.option import SpecOptionSerializer
from apps.meiduo_admin.utils import PageNum


class OptionsViewSet(ModelViewSet):
    queryset = SpecificationOption.objects.all()
    serializer_class = SpecOptionSerializer
    pagination_class = PageNum